package com.ruoyi.project.modules.interfaceObject.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;
import java.util.Set;

/**
 * 接口对象关系对象 t_interface_object
 * 
 * @author smallrain
 * @date 2021-11-04
 */
public class InterfaceObject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 接口ID */
    @Excel(name = "接口ID")
    private Long interfaceId;

    /** 关联对象类型（1表对象 2页面 3用况 4业务系统） */
    @Excel(name = "关联对象类型", readConverterExp = "1=表对象,2=页面,3=用况,4=业务系统")
    private String objectType;

    /** 关联对象ID */
    @Excel(name = "关联对象ID")
    private Long objectId;

    private Integer num;

    private List<Long> tableIds;

    private Set<Long> dubboIds;

    private Set<Long> bffIds;

    private Integer sortNum;

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public Set<Long> getBffIds() {
        return bffIds;
    }

    public void setBffIds(Set<Long> bffIds) {
        this.bffIds = bffIds;
    }

    public Set<Long> getDubboIds() {
        return dubboIds;
    }

    public void setDubboIds(Set<Long> dubboIds) {
        this.dubboIds = dubboIds;
    }

    public List<Long> getTableIds() {
        return tableIds;
    }

    public void setTableIds(List<Long> tableIds) {
        this.tableIds = tableIds;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setInterfaceId(Long interfaceId) 
    {
        this.interfaceId = interfaceId;
    }

    public Long getInterfaceId() 
    {
        return interfaceId;
    }
    public void setObjectType(String objectType) 
    {
        this.objectType = objectType;
    }

    public String getObjectType() 
    {
        return objectType;
    }
    public void setObjectId(Long objectId) 
    {
        this.objectId = objectId;
    }

    public Long getObjectId() 
    {
        return objectId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("interfaceId", getInterfaceId())
            .append("objectType", getObjectType())
            .append("objectId", getObjectId())
            .toString();
    }
}
